home *** CD-ROM | disk | FTP | other *** search
/ The Trig Explorer / The Trig Explorer.iso / mac / Explorer / APPS_ANG.dxr / 00059.ls < prev    next >
Encoding:
Text File  |  1998-07-22  |  376 b   |  14 lines

  1. on exitFrame
  2.   set the trails of sprite 5 to 1
  3.   set x0 to the locH of sprite 3
  4.   set y0 to the locV of sprite 3
  5.   repeat with n = 0 to 720
  6.     set r to float(n * PI / 180.0)
  7.     set y to 15.0 * r * sin(n * PI / 180.0)
  8.     set x to 15.0 * r * cos(n * PI / 180.0)
  9.     set the locH of sprite 5 to x0 + x
  10.     set the locV of sprite 5 to y0 - y
  11.     updateStage()
  12.   end repeat
  13. end
  14.